package org.brisling.oa.service.base;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.brisling.base.domain.inf.BaseDomainInf;
import org.brisling.base.service.BaseService;
import org.brisling.common.ConstSysParam;
import org.springframework.beans.factory.annotation.Autowired;
/**
 * 
 * OA子系统服务基类，非流程业务模块Service继承该类
 * @author : jackson wang
 * @Date   : 2015年6月8日 下午9:47:33
 * @version: 1.0
 * @param <T> 泛型需定义的业务类实体
 */
public class BaseOaService<T extends BaseDomainInf> extends BaseService<T>{	
	
	@PersistenceContext(unitName=ConstSysParam.SUBSYSTEM_SYSMAN)
	@Autowired
	protected void setEntityManager(EntityManager entityManager){
		this.entityManager = entityManager;
		this.subSystem = ConstSysParam.SUBSYSTEM_OA;
	}
	
}
